/*
 * @Description:
 * @version:
 * @Author: 潘骏杰
 * @Date: 2021-11-22 16:23:06
 * @LastEditors: 潘骏杰
 * @LastEditTime: 2021-12-23 10:04:59
 */

import request from '@/utils/requestlogin'
import qs from 'qs'
// import CryptoJS from '@/utils/CryptoJS'

export function get(data) {
  return request({
    url: '',
    method: 'get',
    params: data
  })
}

export function post(data) {
  return request({
    url: '',
    method: 'post',
    data: qs.stringify(data)
  })
}

// 登录
export function login(params) {
  return request({
    url: '/ap/user/login',
    method: 'post',
    data: params
  })
}

export function SendSmsCode(params) {
  return request({
    url: '/ap/usr/sendSmsCode',
    method: 'post',
    data: params
  })
}

// 自动登录
export function AutoLogin(params) {
  return request({
    url: '/ap/user/autologin',
    method: 'post',
    data: params
  })
}
